package com.deli.springboot.mapper;

import com.deli.springboot.entity.Book;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository(value="BookMapper")
public interface BookMapper {

    /**
     * 根据条件查询书籍
     * @param book
     * @return
     */
    public List<Book> selectByExample(Book book);

    /**
     * 添加书籍
     * @param book
     * @return
     */
    public int add(Book book);

}
